package org.mspring.mlog.web;

import org.mspring.mlog.entity.UserEntity;
import org.mspring.mlog.security.SecurityService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Gao Youbo
 * @since 2014-12-05 13:33
 */
public class BaseAdminController extends BaseController {
    protected SecurityService securityService;

    public UserEntity getCurrentUser() {
        return securityService.getCurrentUser();
    }

    @Autowired
    public void setSecurityService(SecurityService securityService) {
        this.securityService = securityService;
    }
}
